{% extends "default.html" %}

{% block content %}
<div class="title">
	Rueda "{{ request.wheel.code }}"
</div>
<div class="content">
	<div>Informaci&oacute;n referente al tipo de rueda seleccionado</div>
	<table class="information_table">
		<tr>
			<th>Tama&ntilde;o</th>
			<td>{{ request.wheel.size }}</td>
		</tr>
		<tr>
			<th>Cantidad</th>
			<td>{{ request.wheel.quantity }}</td>
		</tr>
	</table>
	<div>Si ha ingresado al stock ruedas por alguna entrega, ingrese aqui la informaci&oacute;n correspondiente</div>
	<form action="/wheel/{{ request.wheel.id }}/add/" method="post">
		<table class="information_table">
			<tr>
				<th>Cantidad</th>
				<td><input type="text" name="wheel_add_quantity"></td>
			</tr>
			<tr>
				<th>En que adquisici&oacute;n se realizo el ingreso</th>
					<td>
						{% if  request.obtainments %}
						<select name="wheel_add_obtainment">
							{% for obtainment in request.obtainments %}
							<option value="{{ obtainment.id }}">{{ obtainment.comment }}</option>
							{% endfor %}
						</select>
						{% else %}
						No existen modos de obtener ruedas<br>Registre la informaci&oacute;n de una nueva adquisici&oacute;n aqu&iacute; <a href="/obtainment/">aqu&iacute;</a>
						{% endif %}
					</td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="Agregar"></td>
			</tr>
		</table>
	</form>
</div>
{% endblock %}
